﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.Plumbing
{
	public partial class FormReName : System.Windows.Forms.Form
	{
		public FormReName(string szname)
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
			this.name.Text = szname;
		}

		private void btnOK_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
			this.m_sName = this.name.Text;
			base.Close();
		}

		private void btnCancel_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
			base.Close();
		}

		public string m_sName = "";
	}
}
